/* Layout */
import Layout from '@/views/layout/Layout';

const testRouters = [
  {
    path: '/synthetic-case',
    component: Layout,
    redirect: '/synthetic-case/index',
    name: 'SyntheticCase',
    meta: {
      title: '综合实例',
      icon: 'table'
    },
    children: [
      {
        path: 'index',
        name: 'Index',
        component: () => import('@/views/synthetic-case/index'),
      },
      {
        path: 'detail',
        name: 'Detail',
        component: () => import('@/views/synthetic-case/detail'),
        meta: { title: '创建文章', icon: 'edit' },
        hidden: true
      },
      {
        path: 'edit/:id?',
        name: 'Edit',
        props: true,
        component: () => import('@/views/synthetic-case/detail'),
        meta: { title: '编辑文章', noCache: true },
        hidden: true
      }
    ]
  },
];

export default testRouters;
